package cn.edu.tju.wallet.dto;

import java.math.BigDecimal;
import java.time.LocalDateTime;

public class RechargeRuleDTO {
    private String name;              // 规则名称
    private BigDecimal minAmount;     // 最小充值金额
    private BigDecimal bonusRate;     // 奖励比例
    private BigDecimal bonusAmount;   // 奖励金额
    private LocalDateTime startTime;  // 开始时间
    private LocalDateTime endTime;    // 结束时间
    private Integer priority;         // 优先级

    // Getter、Setter（接收前端入参需）
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public BigDecimal getMinAmount() { return minAmount; }
    public void setMinAmount(BigDecimal minAmount) { this.minAmount = minAmount; }
    public BigDecimal getBonusRate() { return bonusRate; }
    public void setBonusRate(BigDecimal bonusRate) { this.bonusRate = bonusRate; }
    public BigDecimal getBonusAmount() { return bonusAmount; }
    public void setBonusAmount(BigDecimal bonusAmount) { this.bonusAmount = bonusAmount; }
    public LocalDateTime getStartTime() { return startTime; }
    public void setStartTime(LocalDateTime startTime) { this.startTime = startTime; }
    public LocalDateTime getEndTime() { return endTime; }
    public void setEndTime(LocalDateTime endTime) { this.endTime = endTime; }
    public Integer getPriority() { return priority; }
    public void setPriority(Integer priority) { this.priority = priority; }
}